<!doctype html>
<html>

	<head>
		<meta charset="UTF-8">
		<title>门店信息</title>
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<link href="__INDEX__/store/css/mui.min.css" rel="stylesheet" />
		<link rel="stylesheet" type="text/css" href="__INDEX__/store/css/style.css" />
		<link rel="stylesheet" href="__INDEX__/store/css/iconfont.css" />
		<link rel="stylesheet" href="__INDEX__/store/css/wallet.css" />
		<style type="text/css">
			.payment_erweima canvas{width: 180px; height: 180px;}
			@media only screen and (min-width: 321px){.payment_erweima canvas,.payment_erweima{width: 210px; height: 210px;}}
			@media only screen and (min-width: 381px){.payment_erweima canvas,.payment_erweima{width: 240px; height: 240px;}}
			@media only screen and (width: 384px){.payment_erweima canvas,.payment_erweima{width: 220px; height: 220px;}}
			@media only screen and (min-width: 600px){.payment_erweima canvas,.payment_erweima{width: 340px; height: 340px;}}
			.payment_conbox{background: none;}
		</style>
		<!--[if lt IE 9]> 
		<script src="http://css3-mediaqueries-js.googlecode.com/svn/trunk/css3-mediaqueries.js"></script> 
		<![endif]--> 
	</head>

	<body>
		<header class="mui-bar mui-bar-nav">
			<a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a>
			<h1 class="mui-title" id='chain_name1'>连锁店</h1>
		</header>
		<div class="mui-content " style="background-color: #ffffff;margin-bottom: 50px;">
			<div class="liansd_tjbox">
				<div class="liansd_ze">
					<p>门店销售总额(元)</p>
					<p class="pri" id='total_money'>{$date['total_money']}</p>
				</div>
				<ul class="liansd_tjlist clearfix">
					<li>
						<p>今日(元)</p>
						<p class="pri" id='day_money'>{$date['day_money']}</p>
						<p>赠 {$date['day_zscore']?$date['day_zscore'] : 0}</p>
						<p>抵 {$date['day_fscore']?$date['day_fscore'] : 0}</p>
					</li>
					<li>
						<p>本周(元)</p>
						<p class="pri" id='week_money'>{$date['week_money']}</p>
						<p>赠 {$date['week_zscore']?$date['week_zscore'] : 0}</p>
						<p>抵 {$date['week_fscore']?$date['week_fscore'] : 0}</p>
					</li>
					<li>
						<p>本月(元)</p>
						<p class="pri" id='moon_money'>{$date['moon_money']}</p>
						<p>赠 {$date['moon_zscore']?$date['moon_zscore'] : 0}</p>
						<p>抵 {$date['moon_fscore']?$date['moon_fscore'] : 0}</p>
					</li> 
				</ul>				 
			</div>
			<div class="liansuod_conbox">
				<div class="liansd_ewmbt">门店收款码</div>
				<div class="payment_conbox" style="padding: 0;">
					<div class="payment_sjnam"></div>
					<div class="payment_erweima"  style="padding: .0rem;">
						<div id="qrcode" ></div>
					</div>
				</div>
				<!--<div class="liansd_bc"><a href="#">保存收款码</a></div>
				<div class="liansd_dy clearfix">
					<span>值班员工编号</span>
					<span class="right" id='shopowner'></span>
				</div>-->
			</div>
			<button type="button" class="liansd_btn" style="background: #D6AA50;">查看交易记录</button>
		</div>
		<input type="hidden" id='agent_id'>
		<input type="hidden" id='chain_id'>
		<input type="hidden" id='touxiang'>
	</body>
</html>
{include file="public/footer" /}
<script type="text/javascript" src="__PUBLIC__/static/js/jquery.form.js"></script>
<script type="text/javascript" src="__PUBLIC__/static/js/jquery.qrcode.js"></script>
<script type="text/javascript" src="__PUBLIC__/static/js/utf.js"></script>
<script type="text/javascript" src="__PUBLIC__/static/js/zepto-1.1.6.min.js"></script>
<script type="text/javascript" src='__PUBLIC__/static/js/html2canvas.js'></script>
<script type="text/javascript" src="__INDEX__/store/js/app.js"></script>
<script type="text/javascript">//fromuid
$(function(){
	var cut_url = "{$date['code_url']}";
	 $("#qrcode").qrcode({
        render : "canvas",    //设置渲染方式，有table和canvas，使用canvas方式渲染性能相对来说比较好
        text : cut_url,    //扫描二维码后显示的内容,可以直接填一个网址，扫描二维码后自动跳向该链接
        width : "200",               //二维码的宽度
        height : "200",              //二维码的高度
        background : "#ffffff",       //二维码的后景色
        foreground : "#000000",        //二维码的前景色
    });
    
    //交易记录
    $('.liansd_btn').click(function(){
    	location.href ="{:url('agent/liansuod_record',['chain_id'=>$date['chain_store']['id']])}";
    });
})

</script>